package sp.dao.book;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import sp.pojo.Book;

public interface BookDAO {
	
	/**
	 * 
	 * @param List<String> priceRangeList  价格区间列表
	 * @param intervalParam 最新上架时间间隔参数  --默认数值 1 		默认单位:月
	 * @return
	 * @throws Exception
	 */
	
	public List<Book> listBook(@Param("createBy") Integer createBy, @Param("isbn") String isbn, @Param("bookName") String bookName,
					@Param("publish") String publish, @Param("author") String author, @Param("condition") Integer condition, @Param("bookStatus") Integer bookStatus,
					@Param("priceRange") Integer priceRange, @Param("intervalParam") String intervalParam,
					@Param("bookLevel1") Integer bookLevel1, @Param("bookLevel2") Integer bookLevel2, @Param("bookLevel3") Integer bookLevel3) throws Exception;
	
	
	/**
	 * 
	 * @param bid 书籍编号
	 * @param isbn isbn
	 * @param createBy	商家id
	 * @return
	 * @throws Exception
	 */
	public Book getBookInfo(@Param("bid") Integer bid, @Param("isbn")String isbn) throws Exception;
	
	
	
	public List<Book> listBookWithSearch(@Param("searchParam") String searchParam);
	
	
	public boolean saveBook(Book book) throws Exception;
	
	
	
	
	
}
